package com.china08.yxyapi.entity.db.live;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 一个用户同一个直播只能收藏一次
 * 
 * @author Richard.Wang
 *
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_live_user_favor", catalog = "yxy_live", uniqueConstraints = {
		@UniqueConstraint(columnNames = { "user_id", "live_lesson_id" }) })
public class YxyLiveUserFavor extends BaseEntity {

	/**
	 * 用户id
	 */
	@Column(name = "user_id")
	private String userId;

	/**
	 * 直播课id
	 */
	@Column(name = "live_lesson_id")
	private String liveLessonId;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLiveLessonId() {
		return liveLessonId;
	}

	public void setLiveLessonId(String liveLessonId) {
		this.liveLessonId = liveLessonId;
	}
	
	

}
